package com.songlanyun.modules.order.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.songlanyun.common.drive.RootEntity;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 订单的自提信息表
 * 
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2020-11-16 14:14:43
 */
@Data
@TableName("yxt_sale_order_self_take")
public class OrderSelfTake extends RootEntity<Long,OrderSelfTake> implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Long id;
	/**
	 * 订单id
	 */
	@NotNull(message = "必须设置订单id")
	private Long orderId;

	/**
	 * 自提人
	 */
	@NotBlank(message = "必须设置自提人")
	private String receiver;
	/**
	 * 自提人手机号
	 */
	@NotBlank(message = "必须设置自提人手机号")
	private String mobile;


	@Override
	public Long getIdentity() {
		return getId();
	}
}
